﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="5-1.aspx.cs" Inherits="_5_1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Style/registerStyle.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="status_lan" runat="Server">
    <asp:Label ID="status_label" runat="server" Text="您还未登录。"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content2" runat="Server">
    <table class="login-form">
        <tr>
            <td colspan="2" style="text-align: center;font-size:large" class="labelstyle">
                注册
            </td>
        </tr>
        <tr>
            <td class="labelstyle">
                <asp:Label ID="Label1" runat="server" Text="用户名："></asp:Label>
            </td>
            <td style="text-align: right; height: 30px;">
                <asp:TextBox ID="txtName" runat="server" CssClass="textbox-style"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="用户名不能为空">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="labelstyle">
                <asp:Label ID="Label2" runat="server" Text="密码："></asp:Label>
            </td>
            <td style="text-align: right; height: 30px;">
                <asp:TextBox ID="txtPwd" runat="server" CssClass="password-style" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd" ErrorMessage="密码不能为空">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="labelstyle">
                <asp:Label ID="Label3" runat="server" Text="确认密码：" Width="104px"></asp:Label>
            </td>
            <td style="text-align: right; height: 30px;">
                <asp:TextBox ID="txtPwd2" runat="server" CssClass="password-style" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPwd2" ErrorMessage="确认密码不能为空">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPwd" ControlToValidate="txtPwd2" ErrorMessage="密码不匹配">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="labelstyle">
                <asp:Label ID="Label4" runat="server" Text="邮箱："></asp:Label>
            </td>
            <td style="text-align: right; height: 30px;">
                <asp:TextBox ID="txtEmail" runat="server" CssClass="textbox-style"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail" ErrorMessage="邮箱不能为空">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="邮箱格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align:center" colspan="2">
                <asp:Button ID="btnSubmit" runat="server" Height="35px" Text="确认" Width="67px" CssClass="login-button" OnClick="btnOk_Click" />
                <asp:Button ID="btnReset" runat="server" Height="35px" Text="重置" Width="67px" CssClass="login-button" />
            </td>
                

        </tr>
    </table>
</asp:Content>

